#pragma once

#include "Buttons/loading_button_2.h"

class QMovie;
class LoadingButton2;
class LoadingButton2Private : public QObject
{
    Q_OBJECT
    GANT_DECL_PUBLIC(LoadingButton2);

public:
    LoadingButton2Private(LoadingButton2* q);

    void setMovie(QMovie* movie);

    bool startMovie();
    void stopMovie();

public slots:
    void onFrameChanged(int frameNum);

public:
    int m_nTimeout;
    int m_nTimerId;

    QMovie* m_pMovie;
    QIcon m_originIcon;
};